package com.tky.conference.ui;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;


import com.tky.conference.R;
import com.tky.conference.base.BaseActivity;
import com.tky.conference.fragments.MainFragment;

/**
 * Created by cll on 2015/12/14.
 */
public class ConferenceRecordActivity extends BaseActivity{
    private MainFragment mainFragment;
//    private Toolbar toolbar;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        mainFragment = new MainFragment();
        ft.replace(R.id.myconferencefragment, mainFragment);
        ft.commit();
    }

    @Override
    public void initView() {
        setContentView(R.layout.activity_conferencerecord);
    }

    @Override
    public void initToolBar() {
//        toolbar=(Toolbar)findViewById(R.id.toolbar);
//        if(toolbar !=null){
//            toolbar.setTitle("我的会议");
//        }
//        setSupportActionBar(toolbar);
    }

    @Override
    public void initDates() {

    }

    @Override
    public void initEvent() {

    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

//    @Override
//    public boolean onOptionsItemSelected(MenuItem item) {
//        int id=item.getItemId();
//        if (id==android.R.id.home){
//            this.finish();
//            return true;
//        }
//        return super.onOptionsItemSelected(item);
//    }
}
